<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>文件目录服务</title>
<script type="text/javascript" src="/js/vue.js"></script>
<script type="text/javascript" src="/js/axios.min.js"></script>
<link href="/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div id="app" class="container">
    <div>
        <h7> 邮箱验证界面 -  </h7>
         <input type="text" class="form-control" @keyup.enter="updateVersion" v-model="email"   style="width: 220px;" placeholder="请输入邮箱">
         <input type="button" class="btn btn-primary btn-lg" @click="send()" value="发送"/>

    </div>

</div>


<script>

    var v = new Vue({
        el: "#app",
        data: {
            fsList:[],
            parentDir:"",
            currentDir:"",
            email:""
        },

        methods: {

            send: function () {
                var vueObj = this;
                axios.get("/example/mail/send?email="+vueObj.email).then(function (resp) {
                  let code =  resp.data.code;
                  if(code == 0){
                      alert("已发送："+resp.data.data)
                  }
                  //  vueObj.fsList = resp.data.data.fsList;
                  //  vueObj.parentDir = resp.data.data.parentDir
                  //  vueObj.currentDir = resp.data.data.currentDir
                })
            },

        },


    })


</script>


</body>
</html>